export const surveyTypes = () => [{
  title: '选择题',
  children: [
    {label: '单选题', name: 'mcq', type: 'radio', allowJoinChat: true, showSetting: true},
    {label: '多选题', name: 'mmcq', type: 'checkbox', showSetting: true}
  ]
}, {
  title: '填空题',
  children: [{
    label: '填空题', name: 'gf', type: 'textarea', showSetting: true
  }]
}, {
  title: '个人信息',
  children: [
    {label: '姓名', name: 'name', type: 'input', placeholder: '请输入您的姓名', required: true},
    {label: '手机号', name: 'phone', type: 'input', placeholder: '请输入您的手机号', required: true},
    {label: '电子邮箱', name: 'email', type: 'input', placeholder: '请输入您的电子邮箱', required: true},
    {label: '企业地址', name: 'enterpriseAddr', type: 'input', placeholder: '请输入您的企业地址', required: true},
    {label: '企业名称', name: 'enterprise', type: 'input', placeholder: '请输入您的企业名称', required: true},
    {label: '家庭住址', name: 'address', type: 'input', placeholder: '请输入您的家庭住址', required: true},
  ]
}]

export const INIT_SERVEY = () => [
  {
    label: '问卷标题',
    type: 'sTitle',
    placeholder: '请输入问卷标题',
    required: true,
    page: 0,
    index: 0,
    topic: {}
  },
  {
    label: '问卷描述',
    type: 'sNotice',
    placeholder: '问卷描述内容',
    page: 0,
    index: 1,
    topic: {
      title: '您好，欢迎参加本次调研活动'
    }
  },
  {
    label: '问卷结束语',
    type: 'sEnd',
    placeholder: '请输入问卷结束语',
    page: -1,
    index: 2,
    topic: {
      endText: '感谢您的参与！',
      image: null
    }
  }
]
